home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 26
/
026.d81
/
typewriter 64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
42 lines
80 gosub1000
100 open 1,4,7
110 printchr$(147);chr$(14);chr$(8);tab(13)"[212][217][208][197][215][210][201][212][197][210] 64[146]"
120 print"........10........20........30........40[146]"
130 printchr$(126);:if (peek(211))>0 then poke 211,(peek(211)-1)
140 get c$:if c$="" goto 140
150 if c$=chr$(133)goto 230
160 if c$=chr$(13)then goto 250
170 if asc(c$)<>20 then print c$;:s$=s$+c$:goto 190
180 if (peek(211))>0 then print c$;
190 if len(s$)>78 then c$="":goto 250
200 if len(s$)=0 then 220
210 if asc(c$)=20 then s$=mid$(s$,1,(len(s$)-1))
220 goto 130
230 close 1:print chr$(147);chr$(9);chr$(142):load"hello connect",8
240 end
250 print " ";c$;:print#1,s$:s$=""
260 if peek(214)>23 then print chr$(147):goto 110
270 goto 130
1000 rem title screen
1010 print"[147][144]":poke53280,0:poke53281,5
1020 printspc(12)"[212]ypewriter 64"
1022 print
1024 printspc(12)" written by "
1026 print
1028 printspc(12)"[211]teve [195]onroy"
1029 print""
1030 print" [204][207][193][196][211][212][193][210] is not public domain."
1032 print" [208]lease respect the author's rights."
1034 print""
1040 print" [208]lease press a key to continue."
1042 poke198,0:wait198,1:geta$
1050 :
1060 print"[147] [208]lease make sure your printer is on."
1061 print" [208]lease press a key when you are ready."
1062 print" <[217]ou may press '[209]' to quit now>"
1065 poke198,0:wait198,1:geta$:ifa$="q"then230
1070 open4,4:print#4:close4:ifst=0thenreturn
1080 print" [201] can't seem to find a printer..."
1082 print" [208]lease try again!"
1084 poke144,0:fordl=1to2000:next:goto1060